package org.jadapter.tests.guice;

import com.google.inject.Inject;


public class SourceToTarget implements TargetInterface {
	
	private SourceClass context;
	private Injectable injectable;
	
	public SourceToTarget(SourceClass context) {
		this.context = context;
	}
	
	@Inject
	public void wire(Injectable injectable) {
		this.injectable = injectable;
	}
	
	public int counter() {
		return context.getNum() + injectable.getNumber();
	}

}
